package com.CampusLife.service.impl;

import  com.CampusLife.bean.LostComment;
import  com.CampusLife.dao.ILostCommentDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import  com.CampusLife.service.ILostCommentService;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class LostCommentServiceImpl  implements ILostCommentService {
    @Resource
    private ILostCommentDao iLostCommentDao;

    @Override
    public List<LostComment> queryAll() {
        return iLostCommentDao.queryAll();
    }

    @Override
    public List<LostComment> queryById(Integer l_id) {
        return iLostCommentDao.queryById(l_id);
    }

    @Override
    public void add(LostComment lostComment) {
        iLostCommentDao.add(lostComment);
    }

    @Override
    public void update(LostComment lostComment) {

        iLostCommentDao.update(lostComment);
    }

    @Override
    public void delete(Integer c_id) {
        iLostCommentDao.delete(c_id);
    }
}
